<?php
/**
 * Created by PhpStorm.
 * User: xuke
 * Date: 16/6/21
 * Time: 上午10:06
 */

namespace App\Http\Model;


class Provider extends Base
{
    public $table = 'provider';

    protected $primaryKey = 'provider_id';
    protected $fillable = [
        'name',
        'status',
        'address',
        'contact_person',
        'business',
    ];
    
    public function orders()
    {
        return $this->hasMany(OrderSub::class, 'order_sub_id', 'order_sub_id');
    }
}